package com.lijin.domain.query.base;

import java.io.Serializable;
import java.util.List;

/**
 * @author : cabbage
 */
public class Page<T> implements Serializable {

  /**
   * 总页数
   */
  private Long totalPage;

  /**
   * 总记录数
   */
  private Integer totalCount;

  /**
   * 详细的记录
   */
  private List<T> datas;


  public Page(Integer totalCount, List<T> datas) {
    this.totalCount = totalCount;
    this.datas = datas;
  }

  public Long getTotalPage() {
    return totalPage;
  }

  public void setTotalPage(Long totalPage) {
    this.totalPage = totalPage;
  }

  public Integer getTotalCount() {
    return totalCount;
  }

  public void setTotalCount(Integer totalCount) {
    this.totalCount = totalCount;
  }

  public List<T> getDatas() {
    return datas;
  }

  public void setDatas(List<T> datas) {
    this.datas = datas;
  }
}
